import request from "@/utils/request"
// 单表创建
export function addManualEntry (obj) {
  return request({
    url: "/dataInputByManualEntry/add",
    method: "post",
    data: obj
  })
}
// 表单配置
export function manualEntryConfig (obj) {
  return request({
    url: "/dataInputByManualEntry/config",
    method: "post",
    data: obj
  })
}

// 表单查询
export function manualEntryList (obj) {
  return request({
    url: "/dataInputByManualEntry/list",
    method: "get",
    params: obj
  })
}
// 表单查询
export function manualEntryDetail (obj) {
  return request({
    url: "/dataInputByManualEntry/detail",
    method: "get",
    params: obj
  })
}

// 删除
export function deleteManualEntry (obj) {
  return request({
    url: "/dataInputByManualEntry/delete",
    method: "DELETE",
    params: obj
  })
}
// 删除
export function updateManualEntry (obj) {
  return request({
    url: "/dataInputByManualEntry/update",
    method: "PUT",
    data: obj
  })
}
// 表单详情查询
export function manualEntryConfigDeatil (obj) {
  return request({
    url: "/dataInputByManualEntry/config/detail",
    method: "get",
    params: obj
  })
}
// 市行政区划
export function getCity (obj) {
  return request({
    url: "/dataInputByManualEntry/region/getCity",
    method: "get",
    params: obj
  })
}
// 县区行政区划
export function getCountry (obj) {
  return request({
    url: "/dataInputByManualEntry/region/getCountry",
    method: "get",
    params: obj
  })
}
// 街道行政区划
export function getTown (obj) {
  return request({
    url: "/dataInputByManualEntry/region/getTown",
    method: "get",
    params: obj
  })
}
// 村行政区划
export function getVillage (obj) {
  return request({
    url: "/dataInputByManualEntry/region/getVillage",
    method: "get",
    params: obj
  })
}
// 村行政区划
export function getAllRegion (obj) {
  return request({
    url: "/dataInputByManualEntry/region/getAllRegion",
    method: "get",
    params: obj
  })
}